package com.zxy.zxyrpc.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * RPC 响应
 *
 * @author zxy
 * @since 2025/5/11
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RpcResponse implements Serializable {
    /**
     * 响应数据
     */
    private Object data;
    /**
     * 响应数据类型
     */
    private Class<?> dateType;
    /**
     * 响应信息
     */
    private String message;
    /**
     * 异常响应信息
     */
    private Exception exception;
}
